﻿@model IEnumerable<GameSchoolApplication.Models.Announcement>

@{
    ViewBag.Title = "Skilaboð";
	Layout = "~/Views/Shared/_TeacherMore.cshtml";
}
<section class="TeacherMainContent">
<h2>Listi yfir skilaboð</h2>

<p>
    @Html.ActionLink("Búa til ný skilaboð", "Create")
</p>

<table class="IndexTable">
    <tr>
        <th>
            Skilaboð
        </th>
        <th>
            Leikur
        </th>
        <th>
            Dagssetning skráningar
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Content)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Game.Title)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DateTime)
        </td>
        <td>
            @Html.ActionLink("Breyta", "Edit", new { id=item.Id }) |
            @Html.ActionLink("Nánar", "Details", new { id=item.Id }) |
            @Html.ActionLink("Eyða", "Delete", new { id=item.Id })
        </td>
    </tr>
}

</table>
</section>